package com.kasax.toolbox.ui.fragment

import android.view.View
import android.widget.Button
import androidx.navigation.fragment.findNavController
import com.kasax.base.BaseFragment
import com.kasax.toolbox.R

class AppMainFragment : BaseFragment() {

    override fun getLayoutId(): Int = R.layout.fragment_app_main

    override fun addListeners(view: View) {
        view.findViewById<Button>(R.id.btn_action2_basic_comp_test).setOnClickListener {
            findNavController().navigate(R.id.action_2_comp_test_basic)
        }

        view.findViewById<Button>(R.id.btn_action2_open_comp_test).setOnClickListener {
            findNavController().navigate(R.id.action_2_comp_test_open)
        }
        
        view.findViewById<Button>(R.id.btn_action2_sf_comp_test).setOnClickListener {
            findNavController().navigate(R.id.action_2_comp_test_kasax)
        }

        view.findViewById<Button>(R.id.btn_action2_jecpack_comp_test).setOnClickListener {
            findNavController().navigate(R.id.action_2_jetpack_test_fragment)
        }

    }

}